import request from '@/utils/request'

// 查询器材列表
export function listApplyPlist(query) {
  return request({
    url: '/TEquipmentRequestDevice/TEquipmentRequestDevice/list',
    method: 'get',
    params: query
  })
}

// 查询器材详细
export function getApplyPlist(id) {
  return request({
    url: '/TEquipmentRequestDevice/TEquipmentRequestDevice/' + id,
    method: 'get'
  })
}

// 新增器材
export function addApplyPlist(data) {
  return request({
    url: '/TEquipmentRequestDevice/TEquipmentRequestDevice',
    method: 'post',
    data: data
  })
}

// 修改器材
export function updateApplyPlist(data) {
  return request({
    url: '/TEquipmentRequestDevice/TEquipmentRequestDevice',
    method: 'put',
    data: data
  })
}

// 删除器材
export function delApplyPlist(id) {
  return request({
    url: '/TEquipmentRequestDevice/TEquipmentRequestDevice/' + id,
    method: 'delete'
  })
}
